<?php

// Admin routes
Route::group(array('prefix' => 'admin','module'=>'admin', 'namespace' => 'App\Modules\Admin\Controllers'), function() {

    Route::controller('permissions', 'AdminPermissionsController', App\Modules\Admin\Controllers\AdminPermissionsController::$actionNames);

    Route::controller('settings', 'AdminSettingsController', App\Modules\Admin\Controllers\AdminSettingsController::$actionNames);

    Route::controller('roles', 'AdminRolesController', App\Modules\Admin\Controllers\AdminRolesController::$actionNames);

    Route::controller('admins', 'AdminAdminsController', App\Modules\Admin\Controllers\AdminAdminsController::$actionNames);

    Route::controller('users', 'AdminUsersController', App\Modules\Admin\Controllers\AdminUsersController::$actionNames);

    Route::controller('/', 'AdminController', App\Modules\Admin\Controllers\AdminController::$actionNames);
});